home *** CD-ROM | disk | FTP | other *** search
/ Interactive Preview: Enemy of the State / Interactive Preview: Enemy of the State.iso / pc / alrtthis.dxr / 00098.ls < prev    next >
Encoding:
Text File  |  1998-11-18  |  570 b   |  28 lines

  1. on buttonClick theSprite
  2.   repeat while the mouseDown
  3.     if rollOver(the clickOn) then
  4.       if the visible of sprite theSprite = 0 then
  5.         set the visible of sprite theSprite to 1
  6.         updateStage()
  7.       end if
  8.       next repeat
  9.     end if
  10.     if the visible of sprite theSprite = 1 then
  11.       set the visible of sprite theSprite to 0
  12.       updateStage()
  13.     end if
  14.   end repeat
  15.   if rollOver(the clickOn) then
  16.     return 1
  17.   else
  18.     return 0
  19.   end if
  20. end
  21.  
  22. on syncIt theTicks
  23.   startTimer()
  24.   repeat while the timer < theTicks
  25.     nothing()
  26.   end repeat
  27. end
  28.